package com.xiaoyu.tool.repository.user;

import com.xiaoyu.tool.entity.User.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: xiaoyu
 * @Created on 2018/9/18
 */
@Repository
public interface UserRepository extends JpaRepository<User,Long>{

    User findByUnionId(String unionId);

    User findByOpenId(String openId);

    List<User> findByIsAgentTrueAndIdIn(Long [] userIds);

}
